﻿using System.Windows;
using System.Windows.Data;
using Microsoft.Practices.ServiceLocation;
using System.Windows.Controls;

namespace DiagramDesigner
{
    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();
            //Closing += (s, e) => ViewModelLocator.Cleanup();
            //CompositeCollection c = (CompositeCollection)Resources["GuiInputCollection"];                        
            
        }

        private void designerControl_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            //MessageBox.Show(e.AddedItems.ToString());
            Title = this.MyListBox.SelectedItems.Count.ToString();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            //MainViewModel mvm = ServiceLocator.Current.GetInstance<MainViewModel>();
            //mvm.Drops[0].Contours.RemoveAt(0);
            //ContoursViewModel vm = ServiceLocator.Current.GetInstance<ContoursViewModel>();
            //vm.AngleLineLeft.Pt2 = new Point(200, 20);
            //vm.AngleLineLeft.Pt1 = new Point(150, 40);
        }

        private void MyDesigner_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {

        }
        
    }
}
